package com.web.exiaodao.remote.vo;

import com.google.common.collect.Lists;
import com.web.exiaodao.business.constant.JConstant;
import com.web.webstart.base.util.XaUtil;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;
import java.util.List;

/**
 * @author eason.zt
 * @ClassName: InsHotelRoomsTableVo
 * @Description:机构-酒店房间表 Vo
 * @date 2016-11-04 10:58:15
 */
@ApiModel(value = "机构-酒店房间表Vo对象")
public class InsHotelRoomsTableVo {

    @ApiModelProperty(value = "主键，自动增长")
    private Long id;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "房型名称,房型名称")
    private String hotelRooms_Name;
    @ApiModelProperty(value = "房型价格,房型价格")
    private Double hotelRooms_Price;
    @ApiModelProperty(value = "房型价格单位,房型价格-单位")
    private String hotelRooms_Price_unit;
    @ApiModelProperty(value = "库存,库存")
    private Integer hotelRooms_Inventory;
    @ApiModelProperty(value = "机构编码,机构编码（外键）")
    private Long institutionId;
    @ApiModelProperty(value = "房型简介(富文本，全文字),房型简介")
    private String hotelRooms_Brief;
    @ApiModelProperty(value = "房型(单人间，双人间，多人间；小套，中套，大套；)")
    private String hourseType;
    @ApiModelProperty(value = "房间图片（banner）URL，多张逗号分割,房间图片URL，多张逗号分割")
    private String banner;

    /**
     * 买卡 or 预订
     */
    @ApiModelProperty(value = "是否按卡出售;是否按卡出售")
    private Boolean isSellByCard;
    @ApiModelProperty(value = "卖卡预订价格;卖卡预订价格,只有isSellByCard=true，才有此字段")
    private Double bookPrice;


    @ApiModelProperty(value = "机构前n条评论<>,机构前n条评论")
    private List<CommentVo> hotelRooms_commons = new ArrayList<>();
    @ApiModelProperty(value = "机构banner;机构banner")
    private List<String> hotelRooms_bannerList = new ArrayList<>();

    public InsHotelRoomsTableVo() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public void setHotelRooms_Name(String hotelRooms_Name) {
        this.hotelRooms_Name = hotelRooms_Name;
    }

    public String getHotelRooms_Name() {
        return hotelRooms_Name;
    }

    public void setHotelRooms_Price(Double hotelRooms_Price) {
        this.hotelRooms_Price = hotelRooms_Price;
    }

    public Double getHotelRooms_Price() {
        return hotelRooms_Price;
    }

    public void setHotelRooms_Inventory(Integer hotelRooms_Inventory) {
        this.hotelRooms_Inventory = hotelRooms_Inventory;
    }

    public Integer getHotelRooms_Inventory() {
        return hotelRooms_Inventory;
    }

    public void setInstitutionId(Long institutionId) {
        this.institutionId = institutionId;
    }

    public Long getInstitutionId() {
        return institutionId;
    }


    public void setHotelRooms_Brief(String hotelRooms_Brief) {
        this.hotelRooms_Brief = hotelRooms_Brief;
    }

    public String getHotelRooms_Brief() {
        return hotelRooms_Brief;
    }

    public void setHotelRooms_Price_unit(String hotelRooms_Price_unit) {
        this.hotelRooms_Price_unit = hotelRooms_Price_unit;
    }

    public String getHotelRooms_Price_unit() {
        return XaUtil.isEmpty(hotelRooms_Price_unit) ? (getIsSellByCard() ? "卡" : hotelRooms_Price_unit) : hotelRooms_Price_unit;
    }

    public List<CommentVo> getHotelRooms_commons() {
        return hotelRooms_commons;
    }

    public void setHotelRooms_commons(List<CommentVo> hotelRooms_commons) {
        this.hotelRooms_commons = hotelRooms_commons;
    }

    public List<String> getHotelRooms_bannerList() {
        return XaUtil.isEmpty(banner) ? hotelRooms_bannerList : Lists.<String>newArrayList(banner.split(JConstant.SYMBOL_DOT));
    }

    public void setHotelRooms_bannerList(List<String> hotelRooms_bannerList) {
        this.hotelRooms_bannerList = hotelRooms_bannerList;
    }

    public String getHourseType() {
        return hourseType;
    }

	public void setHourseType(String hourseType) {
		this.hourseType = hourseType;
	}

	public String getBanner() {
		return banner;
	}

	public void setBanner(String banner) {
		this.banner = banner;
	}

	public Boolean getIsSellByCard() {
		return isSellByCard;
	}

	public void setIsSellByCard(Boolean isSellByCard) {
		this.isSellByCard = isSellByCard;
	}

	public Double getBookPrice() {
		return bookPrice;
	}

	public void setBookPrice(Double bookPrice) {
		this.bookPrice = bookPrice;
	}
}



